<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>后台管理</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="UI/css/common.css"/>
<link rel="stylesheet" type="text/css" href="UI/css/main.css"/>
<script type="text/javascript" src="UI/js/libs/modernizr.min.js"></script>


</head>
<body>
<s:if test="null==#session.account">
	<s:a href="login.action" align="center"><h2>您不能直接访问网站内部页面,请先登录!</h2></s:a>
</s:if>
<s:else>

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i>
            <span class="crumb-name">首页</span><span class="crumb-step">&gt;</span>
            <span class="crumb-name">媒体管理</span><span class="crumb-step">&gt;</span>
            <span>新增媒体</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="addMedia" method="post" id=""  name=""  enctype="multipart/form-data">
                    <table class="insert-tab" width="100%">
                        <tbody>
	                        <tr>
	                            <th width="120"><i class="require-red">*</i>视频名称：</th>
	                            <td>
	                                <s:textfield name="media.filename" id="meida.filename" class="common-text required" type="text" size="50" required="required"></s:textfield>
	                            </td>
	                        </tr>
	                        <tr>
                                <th><i class="require-red">*</i>上传文件：</th>
                                <td>
                                	<s:file name="uploadFile" label="选择文件"  size="50" />
                                </td>
<!--                                 <td><input name="file" id="file" type="file">
                                	<input type="submit" onclick="submitForm('/jscss/admin/design/upload')" value="上传图片"/>
                                </td> -->
                            </tr>
<%--                             <tr>
                                <th><i class="require-red">*</i>开始时间：</th>
                                 <td>
                                     <s:select headerKey="-1" headerValue="时" name="startHoursId" 
                                     list="#{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'9','10':'10',
                                     '11':'11','12':'12','13':'13','14':'14','15':'15','16':'16','17':'17','18':'18',
                                     '19':'19','20':'20','21':'21','22':'22','23':'23','24':'24'}"/>
									<span>时</span><span>&nbsp;&nbsp;</span>
									
                                	<s:select headerKey="-1" headerValue="分" name="startMinutesId" 
                                	list="#{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'9','10':'10',
                                     '11':'11','12':'12','13':'13','14':'14','15':'15','16':'16','17':'17','18':'18',
                                     '19':'19','20':'20','21':'21','22':'22','23':'23','24':'24'}" />
                                	<span>分</span><span>&nbsp;&nbsp;</span>
                                
                                	<s:select headerKey="-1" headerValue="秒" name="startSecondsId" 
                                	list="#{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'9','10':'10',
                                     '11':'11','12':'12','13':'13','14':'14','15':'15','16':'16','17':'17','18':'18',
                                     '19':'19','20':'20','21':'21','22':'22','23':'23','24':'24'}"/>
                                	<span>秒</span><span>&nbsp;&nbsp;</span>
                                </td>
                            </tr>
                           <tr>
                                <th><i class="require-red">*</i>结束时间：</th>                                
                                <td>
                                     <s:select headerKey="-1" headerValue="时" name="endHoursId" 
                                     list="#{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'9','10':'10',
                                     '11':'11','12':'12','13':'13','14':'14','15':'15','16':'16','17':'17','18':'18',
                                     '19':'19','20':'20','21':'21','22':'22','23':'23','24':'24'}"/>
                                     <span>时</span><span>&nbsp;&nbsp;</span>
                                	<s:select headerKey="-1" headerValue="分" name="endMinutesId" 
                                	list="#{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'9','10':'10',
                                     '11':'11','12':'12','13':'13','14':'14','15':'15','16':'16','17':'17','18':'18',
                                     '19':'19','20':'20','21':'21','22':'22','23':'23','24':'24'}"/>
                                	<span>分</span><span>&nbsp;&nbsp;</span>
                                	<s:select headerKey="-1" headerValue="秒" name="endSecondsId" 
                                	list="#{'1':'1','2':'2','3':'3','4':'4','5':'5','6':'6','7':'7','8':'9','10':'10',
                                     '11':'11','12':'12','13':'13','14':'14','15':'15','16':'16','17':'17','18':'18',
                                     '19':'19','20':'20','21':'21','22':'22','23':'23','24':'24'}"/>
                                	<span>秒</span><span>&nbsp;&nbsp;</span>
                                </td>
                            </tr> --%>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="确认" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr> 
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
</s:else>
  </body>
</html>
